package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 已分班学生剩余课次记录【缴费率使用】
 * </p>
 *
 * @author hpiggy
 * @since 2024-06-19
 */
@TableName("student_residue_course")
@ApiModel(value = "StudentResidueCourse对象", description = "已分班学生剩余课次记录【缴费率使用】")
@Data
public class StudentResidueCourse implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("年份")
    private Integer yearPart;

    @ApiModelProperty("学期")
    private Integer quarterNum;

    @ApiModelProperty("校区id")
    private Long schoolId;

    @ApiModelProperty("科目id")
    private Long subjectsId;

    @ApiModelProperty("所在班级")
    private Long gradeId;

    @ApiModelProperty("任课老师")
    private Long teacherId;

    @ApiModelProperty("学生id")
    private Long studentId;

    @ApiModelProperty("1精品课，2智能课，3刷题班")
    private Integer lessonType;

    private Integer readingStatus;

    @ApiModelProperty("剩余课次")
    private Integer residueCourseCount;

    @ApiModelProperty("使用课次")
    private Integer useCourseCount;

    @ApiModelProperty("剩余金额")
    private BigDecimal residuePrice;

    @ApiModelProperty("使用金额")
    private BigDecimal usePrice;

    @ApiModelProperty("开始日期")
    private LocalDate startDate;

    @ApiModelProperty("结束日期")
    private LocalDate endDate;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;
}
